package com.xiaomi.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

//订单表
public class Bill implements Serializable {

    private String bid;//订单编号
    private int aid;//地址id
    private double billmoney;//订单金额
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date billtime;//订单支付完成时间
    private int billstate;//订单状态默认1未支付2已支付3已发货
    private int uid;//用户表id
    private int payment_method;//1小米支付2微信3支付宝

    //address
    private String aname;//收货人
    private String phonenum;//收货人手机号
    private String address;//收货人地址
    private String uname;//用户名
    private List<Billdetailed> billdetailedList;//订单表
    private Address addresslist;//地址表

    public List<Billdetailed> getBilldetailedList() {
        return billdetailedList;
    }

    public void setBilldetailedList(List<Billdetailed> billdetailedList) {
        this.billdetailedList = billdetailedList;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public Address getAddresslist() {
        return addresslist;
    }

    public void setAddresslist(Address addresslist) {
        this.addresslist = addresslist;
    }




    public int getPayment_method() {
        return payment_method;
    }

    public void setPayment_method(int payment_method) {
        this.payment_method = payment_method;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public String getPhonenum() {
        return phonenum;
    }

    public void setPhonenum(String phonenum) {
        this.phonenum = phonenum;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }



    public String getBid() {
        return bid;
    }

    public void setBid(String bid) {
        this.bid = bid;
    }

    public int getAid() {
        return aid;
    }

    public void setAid(int aid) {
        this.aid = aid;
    }

    public double getBillmoney() {
        return billmoney;
    }

    public void setBillmoney(double billmoney) {
        this.billmoney = billmoney;
    }

    public Date getBilltime() {
        return billtime;
    }

    public void setBilltime(Date billtime) {
        this.billtime = billtime;
    }

    public int getBillstate() {
        return billstate;
    }

    public void setBillstate(int billstate) {
        this.billstate = billstate;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    @Override
    public String toString() {
        return "Bill{" +
                "bid='" + bid + '\'' +
                ", aid=" + aid +
                ", billmoney=" + billmoney +
                ", billtime=" + billtime +
                ", billstate=" + billstate +
                ", uid=" + uid +
                ", payment_method=" + payment_method +
                ", aname='" + aname + '\'' +
                ", phonenum='" + phonenum + '\'' +
                ", address='" + address + '\'' +
                ", billdetailedList=" + billdetailedList +
                ", addresslist=" + addresslist +
                '}';
    }
}
